/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: Pet
 * Author:   666
 * Date:     2020/6/19 23:51
 * Description: 继承父类
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package c_004;

/**
 * @Classname Pet
 * @Description TODO
 * @Date 2020/6/19 23:51
 * @Created by 666
 */
public class Pet {
    private String name;
    private String address;
    private String gender;//性别

    public Pet() {
        System.out.println("pet 父类无参的构造方法");
    }

    public Pet(String name, String address, String gender) {
        this.name = name;
        this.address = address;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    protected void play() {
        System.out.println("son is play");
    }

    public static void testStatic() {
        System.out.println("Test Static");
    }
}
